home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
comm2
/
termsorc.lha
/
Extras
/
Source
/
gtlayout-source.lha
/
LTP_SearchKeys.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-24
|
924b
|
49 lines
/* GadTools layout toolkit
**
** Copyright © 1993-1995 by Olaf `Olsen' Barthel
** Freely distributable.
*/
#include "gtlayout_global.h"
#ifdef DO_PICKSHORTCUTS
VOID __regargs
LTP_SearchKeys(LayoutHandle *handle,ObjectNode *group)
{
ObjectNode *node;
ULONG page;
SCANPAGE(group,node,page)
{
if(node -> Type == GROUP_KIND)
LTP_SearchKeys(handle,node);
else
{
if(node -> Key)
{
WORD i;
for(i = 0 ; i < 256 ; i++)
{
if(LTP_Keys[0][i] == node -> Key || LTP_Keys[1][i] == node -> Key)
{
handle -> Keys[LTP_Keys[0][i]] = TRUE;
handle -> Keys[LTP_Keys[1][i]] = TRUE;
break;
}
}
if(LTP_Keys[1][node -> Key])
node -> Key = LTP_Keys[0][node -> Key];
}
else
{
if((handle -> CursorKey == node) || (handle -> ReturnKey == node) || (handle -> EscKey == node) || (handle -> TabKey == node))
node -> NoKey = TRUE;
}
}
}
}
#endif